Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

tests: fix sql_alchemy_db fixture for timescale#1177

Merged
joseph-sentry merged 1 commit intomainfrom
joseph/fix-flaky-test
Mar 27, 2025
Merged

tests: fix sql_alchemy_db fixture for timescale#1177
joseph-sentry merged 1 commit intomainfrom
joseph/fix-flaky-test

Conversation

@joseph-sentry
Copy link
Copy Markdown
Contributor

there's a deadlock error that happens where the timescale background worker is running background jobs and we're altering the schema of the tables on which it's running the background job on, so we stop the background worker momentarily to allow the migrations to run.

there's a deadlock error that happens where the timescale background
worker is running background jobs and we're altering the schema of
the tables on which it's running the background job on, so we stop the
background worker momentarily to allow the migrations to run.
@joseph-sentry joseph-sentry requested a review from a team March 26, 2025 18:55
@seer-by-sentry
Copy link
Copy Markdown
Contributor

✅ Sentry found no issues in your recent changes ✅

@codecov-notifications
Copy link
Copy Markdown

codecov-notifications Bot commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.72%. Comparing base (dba53c5) to head (71420fd).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1177   +/-   ##
=======================================
  Coverage   97.72%   97.72%           
=======================================
  Files         453      453           
  Lines       37117    37125    +8     
=======================================
+ Hits        36273    36281    +8     
  Misses        844      844           
Flag Coverage Δ
integration 42.80% <100.00%> (+0.01%) ⬆️
unit 90.55% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Contributor

@Swatinem Swatinem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this is the source of flakyness in CI?

@joseph-sentry
Copy link
Copy Markdown
Contributor Author

so this is the source of flakyness in CI?

imo this is the source of flakiness.

i'm not sure why we haven't run into this on prod yet, probably because the background worker on prod doesn't run jobs as often, but i don't see why that same deadlock failure wouldn't be possible to run into on prod

@joseph-sentry joseph-sentry added this pull request to the merge queue Mar 27, 2025
Merged via the queue into main with commit c3a1010 Mar 27, 2025
28 of 29 checks passed
@joseph-sentry joseph-sentry deleted the joseph/fix-flaky-test branch March 27, 2025 14:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants